package com.slmn.model;

import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.CommonToken;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenSource;
import org.antlr.v4.runtime.misc.Pair;

public class SymbolAST extends CommonToken {
    /**
	 * 
	 */
	private static final long serialVersionUID = -8941849849129512462L;
	public Scope scope;   // set by DefPhase; ID lives in which scope?
    public Symbol symbol; // set by RefPhase; point at def in symbol table 
    public SymbolAST(Token t) { super(t); }
	public SymbolAST(int type, String text) {
		super(type, text);
	}
	public SymbolAST(Pair<TokenSource, CharStream> source, int type,
			int channel, int start, int stop) {
		super(source, type, channel, start, stop);
	}
	
	@Override
	public String toString() {
		String t = super.toString();
		return "SymbolAST" +":"+t;
		}
}
